import request from '@/utils/request'

// 查询房屋安全排查列表
export function listSafety(query) {
  return request({
    url: '/house/safety/list',
    method: 'get',
    params: query
  })
}

// 查询房屋安全排查详细
export function getSafety(id) {
  return request({
    url: '/house/safety/' + id,
    method: 'get'
  })
}

// 新增房屋安全排查
export function addSafety(data) {
  return request({
    url: '/house/safety',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}

// 修改房屋安全排查
export function updateSafety(data) {
  return request({
    url: '/house/safety',
    method: 'put',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}

// 删除房屋安全排查
export function delSafety(id) {
  return request({
    url: '/house/safety/' + id,
    method: 'delete'
  })
}

// 导出房屋安全排查
export function exportSafety(query) {
  return request({
    url: '/house/safety/export',
    method: 'post',
    params: query
  })
} 